home *** CD-ROM | disk | FTP | other *** search
/ Web Publisher's Design Gu…or Windows (2nd Edition) / design.iso / otherfiles / sideshow (shockwave) / 00002_Movie.ls < prev    next >
Encoding:
Text File  |  1995-08-28  |  1.2 KB  |  47 lines

  1. on startMovie
  2.   global gLoop, gPup, gbackground
  3.   clearGlobals()
  4.   set the colorDepth to 8
  5. end
  6.  
  7. on stopMovie
  8.   clearGlobals()
  9. end
  10.  
  11. on muZak theSound
  12.   if soundBusy(1) = 0 then
  13.     puppetSound(theSound, 1)
  14.   else
  15.     nothing()
  16.   end if
  17. end
  18.  
  19. on happyJoy puppy, newCast, newVert, newHor, oldlocV, oldlocH
  20.   puppetSprite(puppy, 1)
  21.   set the castNum of sprite puppy to newCast
  22.   repeat while the locH of sprite puppy > -5
  23.     set the locV of sprite puppy to the locV of sprite puppy + newVert
  24.     set the locH of sprite puppy to the locH of sprite puppy + newHor
  25.     updateStage()
  26.   end repeat
  27.   puppetSprite(puppy, 0)
  28.   set the locV of sprite puppy to oldlocV
  29.   set the locH of sprite puppy to oldlocH
  30.   updateStage()
  31. end
  32.  
  33. on qMark
  34.   set the locV of sprite 6 to 150 + random(6)
  35.   set the locH of sprite 6 to 90 + random(6)
  36.   set the foreColor of sprite 6 to random(100)
  37.   set the castNum of sprite 8 to 80
  38.   set the locV of sprite 8 to 140 + random(9)
  39.   set the locH of sprite 8 to 420 + random(8)
  40.   set the foreColor of sprite 8 to random(100)
  41.   set the castNum of sprite 9 to 80
  42.   set the locV of sprite 9 to 265 + random(15)
  43.   set the locH of sprite 9 to 145 + random(5)
  44.   set the foreColor of sprite 9 to random(100)
  45.   updateStage()
  46. end
  47.